package com.rent.collectrent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rent.collectrent.entity.WriteOffDetail;
import com.rent.collectrent.entity.WriteOffSummary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author news
 * *@date 2025/9/28
 */
@Mapper
public interface WriteOffDetailMapper extends BaseMapper<WriteOffDetail> {
    /**
     * 批量插入核销明细
     */
    int batchInsert(@Param("list") List<WriteOffDetail> details);

    /**
     * 根据批次号统计核销汇总数据
     */
    WriteOffSummary selectSummaryByBatchNo(@Param("batchNo") String batchNo);
}
